import request from '@/utils/request'

// 获取活动信息
export const getInfo = (param) => {
	return request.get('activity/getInfo', param)
}

// 翻牌抽奖
export const prizeDraw = (param) => {
	return request.post('activity/prizeDraw', param)
}

// 盲盒抽奖
export const platformBoxPrizeDraw = (param) => {
	return request.post('activity/platformBoxPrizeDraw', param)
}

// 立即支付
export const payment = (param) => {
	return request.post('order/payment', param)
}

// 增加分享量
export const addShareNum = (param) => {
	return request.post('activity/addShareNum', param)
}

// 平台盲盒奖品详情
export const platformBoxPrizeInfo = (param) => {
	return request.get('activity/platformBoxPrizeInfo', param)
}

// 提交翻牌抽奖中奖信息
export const submitDrawInfo = (param) => {
	return request.post('activity/submitDrawInfo', param)
}